<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .son {
      width: 300px;
      height: 300px;
      background-color: aqua;
      position: fixed;
      top: 20px;
      left: 0;
      margin: 20px;
    }

    .father {
      width: 500px;
      height: 500px;
      background-color: darkorange;
      margin: 20px 200px;
      transform: translate(0);
    }
  </style>
</head>

<body>
 
  <div class="father">
     <Teleport to="body">
    <div class="son"></div>
  </Teleport>
  </div>
  
</body>

</html>